<? global $lg, $another_news, $FullUrl, $article, $cat1, $cat2, $prefix_url; ?>
<?

$rs = $article['img'];

$img = GetImage($rs);
$w = 240;
$h = 240;
$sizes = fixSize($img, $w, $h);
$sizes_img_true = getimagesize($img);
$url_image = $img;
$title_link_1 = $FullUrl . $prefix_url .$cat1["unique_key_$lg"]. "/";
$title_link_2 = $FullUrl . $prefix_url .$cat1["unique_key_$lg"]. "/" .$cat2["unique_key_$lg"];
?>

<div class="detail-article">
	<div class="title_bar">
<a href="<?=$title_link_1?>"> <span><?=$cat1["name_$lg"]?>&nbsp;>>&nbsp;</span> </a>  
<a href="<?=$title_link_2?>"> <span><?=$cat2["name_$lg"]?></span></a>
</div>
	<div class="header-detail-article">        
       <!-- <time datetime="<?= $article['date_post'] ?>"><?= $article['date_post'] ?></time>-->
        <div class="image-detail">
            <img src="<?= GetPHPThumb($url_image,
    $w, $h); ?>" alt="<?= $article["name_".$lg] ?>" title="<?= $article["name_".$lg] ?>" style="margin-top:<? echo
    ImageCenter($sizes['height'], $h) ?>px;margin-left:<?= ImageCenterHorizontal($sizes['width'],
        240) ?>px" />
        </div>
        <div class="short-detail">
		<h3 style="padding:20px;"><?= $article["name_".$lg]; ?></h3>
		<div class="shot-detail-article"><p><?= $article["short_".$lg]; ?></p></div></div>
    </div>
    <div class="slipt-page">&nbsp;</div>
    <div style="clear:both"></div>
    <div class="detail-content"><?= $article["content_".$lg]; ?></div>
</div>

 <? if ($another_news) { ?>
 <div class="article_others">
    <h2><span>Tin Tức Khác</span></h2>
    <ul>
            <? for ($i = 0; $i < count($another_news); $i++) {
        $news = $another_news[$i];
        $link = GetProductLink2($news, $lg);
        $img2 = GetImage($news['img']);
        $w2 = 160;
        $h2 = 160;
        $sizes2 = fixSize($img2, $w2, $h2);
        $url_image2 = $img2;
?>
            <li> <a href="<?= $link ?>">
              <div class="image_range"> <img src="<?= GetPHPThumb($url_image2, $w2,
        $h2); ?>" alt="<?= $news["name_".$lg] ?>" title="<?= $news["name_".$lg] ?>" /> </div>
              <div class="article_info"> <span><?=$news["name_".$lg] ?></span> </div>
              </a></li>
            <? } ?>
          </ul>
 </div> 
<? } ?>          

<?= isset($_SESSION['mess']) ? AlertMessage($_SESSION['mess']) : '';
unset($_SESSION['mess']); ?>
